package com.wootion.cims.module.communitymerchant.excel;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: LanQiang
 * @Date: 2023/01/06/9:55
 * @Description: 作用xxx
 */
@Data
@ApiModel(value = "商户excel导出")
@ExcelIgnoreUnannotated
@HeadFontStyle(fontHeightInPoints = 12)
@HeadRowHeight(value = 25)
public class ShopExcel implements Serializable {
    private static final long serialVersionUID = 17161196276361091L;

    @ExcelProperty(value = "所属社区",index = 0)
    @ColumnWidth(value = 12)
    private String communityName;

    @ExcelProperty(value = "所属小区",index = 1)
    @ColumnWidth(value = 12)
    private String plotName;
    
    @ExcelProperty(value = "门店名称",index = 2)
    @ColumnWidth(value = 12)
    private String name;

    @ExcelProperty(value = "门店类型",index = 3)
    @ColumnWidth(value = 12)
    private String categoryType;

    @ExcelProperty(value = "负责人",index = 4)
    @ColumnWidth(value = 12)
    private String responsiblePerson;

    @ExcelProperty(value = "法定代表人",index = 5)
    @ColumnWidth(value = 12)
    private String lawman;

    @ExcelProperty(value = "地址",index = 6)
    @ColumnWidth(value = 20)
    private String address;

    @ExcelProperty(value = "联系方式",index = 7)
    @ColumnWidth(value = 18)
    private String contact;

    @ExcelProperty(value = "开业时间",index = 8)
    @ColumnWidth(value = 18)
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date timeOpen;

    @ExcelProperty(value = "统一社会信用代码",index = 9)
    @ColumnWidth(value = 18)
    private String codeUni;

    @ExcelProperty(value = "组织机构代码",index = 10)
    @ColumnWidth(value = 18)
    private String codeOrg;


    /**
     * 关键字
     */
    private String keyWord;

    /**
     * 门店类型
     */
    private String category;

    /**
     * 勾选的id数组
     */
    private List<String> ids;
}
